<?
        require_once('../inc/BillingAddresses.php');
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Billing Address Updated</title>
        <link type="text/css" rel="stylesheet" href="../inc/bootstrap.css" />
    </head>
   
    <body>
       
        <? include('../inc/header.php'); ?>
        <div class="container">
                
    	</div>
        <div class="container">
        <h2>Billing Address Updated</h2>
                        <? include('../inc/nav.php'); ?>
                        <a href="bindex.php">Return to index</a>
        </div>
        
        	<?php
				$id =  $_POST["id"];
				$ui = $_POST["userid"];
				$sa = $_POST["streetaddress"];
				$c = $_POST["city"];
				$s = $_POST["state"];
				$zc = $_POST["zipcode"];
				$con = GetConnection();
				$db = mysql_select_db("n02447784_db",$con);
				$query = ("UPDATE BillingAddress 
						   SET Users_id = '$ui', street_address = '$sa', city = '$c', state = '$s', zip_code = '$zc', updated_at = NOW()
						   WHERE id = $id");
				mysql_query($query);
				mysql_close($con);
			?>
        	
    </body>
</html>